<template>
	<view class="my-search-1" :style="{'background':bgcolor}">

		<view class='my-search-2' @click="zsn">
			<uni-icons type="search" size="20"></uni-icons>
			<text class='sosuo'>搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name: "my-search",
		props:{
			bgcolor:{
				type:String,
				default:'blue'
			}
		},
		data() {
			return {
			
			};
		},
		methods:{
			zsn(){
				console.log('ok')
				uni.navigateTo({
					url:'../../ok/search/search'
				});
				this.$emit('click')
			}
		}
	}
</script>

<style lang="scss">
	.my-search-1 {
		height: 50px;
		background-color: red;
		padding: 0 20px;
		display: flex;
		align-items: center;
		.my-search-2 {
			height: 35px;
			background-color: white;
			border-radius: 30px;
			width: 100%;
			display: flex;
			justify-content: center;
			align-items: center;

			.sosuo {}
		}

	}
</style>
